package com.xdap.fsapproval.controller;

import com.definesys.mpaas.common.http.Response;
import com.xdap.fsapproval.service.FeishuService;
import com.xdap.common.config.LocalValue;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject：IntelliJ IDEA
 * @BelongsPackage：com.xdap.cyms.orgUser.controller
 * @Author：fei
 * @CreateTime：2022-08-29 17:11
 * @Description: 飞书鉴权
 * @Version：1.0
 */
@Slf4j
@RestController
@RequestMapping("/custom/feishu")
public class FeishuServiceController {
    @Autowired
    FeishuService feishuService;

    @GetMapping("/getToken")
    public Response getToken(){

        return Response.ok().data(feishuService.getToken());
    }

}
